1f8d42ab498c2f5a4c653d29119b6b37763d4ac4,compiler/backend/src/org/jetbrains/jet/codegen/CodegenUtil.java,CodegenUtil,isNullableType,#JetType#,288
Before Change
if (type.getConstructor().getDeclarationDescriptor() instanceof TypeParameterDescriptor) {
return TypeUtils.hasNullableSuperType(type);
}
return type.isNullable();
}
}
After Change
* @return true if a value of this type can be null
*/
public static boolean isNullableType(@NotNull JetType type) {
if (type.isNullable()) {
return true;
}
if (type.getConstructor().getDeclarationDescriptor() instanceof TypeParameterDescriptor) {
return TypeUtils.hasNullableSuperType(type);